package com.wx.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.WxResourceMapper;
import com.wx.entity.WxResource;
import com.wx.entity.WxResourceExample;
import com.wx.service.WxResourceService;

@Service("wxResourceService")
public class WxResourceServiceImpl implements WxResourceService {

	private WxResourceMapper wxResourceMapper;
	
	@Override
	public int insert(WxResource record) {
		return this.wxResourceMapper.insert(record);
	}

	@Override
	public List<WxResource> selectByExample(WxResourceExample example) {
		return this.wxResourceMapper.selectByExample(example);
	}

	@Override
	public WxResource selectByPrimaryKey(Integer id) {
		return this.wxResourceMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countByExample(WxResourceExample example) {
		return this.wxResourceMapper.countByExample(example);
	}

	@Override
	public int updateByExample(WxResource record, WxResourceExample example) {
		return this.wxResourceMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByPrimaryKey(WxResource record) {
		return this.wxResourceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.wxResourceMapper.deleteByPrimaryKey(id); 
	}

	@Override
	public int deleteByPrimaryKey(WxResourceExample example) {
		return this.wxResourceMapper.deleteByExample(example);
	}

	public WxResourceMapper getWxResourceMapper() {
		return wxResourceMapper;
	}

	@Resource
	public void setWxResourceMapper(WxResourceMapper wxResourceMapper) {
		this.wxResourceMapper = wxResourceMapper;
	}
}
